projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
841eb45
)
wayland: Initialize variable
author
Benjamin Otte
<otte@redhat.com>
Mon, 4 Dec 2017 17:28:14 +0000
(18:28 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 4 Dec 2017 17:28:53 +0000
(18:28 +0100)
Otherwise we get NULL-warnings when we try to use (read: unref) it.
gdk/wayland/gdkdnd-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkdnd-wayland.c
b/gdk/wayland/gdkdnd-wayland.c
index d8a3d4edf2d0c23a09c09190ecdc9b0c152fab3a..c676f258ccab5476d1cc65b6f5b3585b962e735b 100644
(file)
--- a/
gdk/wayland/gdkdnd-wayland.c
+++ b/
gdk/wayland/gdkdnd-wayland.c
@@
-548,6
+548,7
@@
_gdk_wayland_drop_context_new (GdkDisplay *display,
context = GDK_DRAG_CONTEXT (context_wayland);
context->display = display;
context->is_source = FALSE;
+ context->formats = gdk_content_formats_new (NULL, 0);
return context;
}